package com.dkx.wm.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dkx.wm.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.sql.Wrapper;
import java.util.List;
@Mapper
public interface UserMapper extends BaseMapper<User> {
    List<User> selectAll();
    User selectById(Integer id);
    int insert(User user);
    void update(User user);
    void deleteById(Integer id);
    int count(); // 查询总记录数
    List<User> selectByPage(int offset, int pageSize); // 分页查询
//    IPage<User> selectPage(Page<User> page, Object o); //分页查询

}